package com.sun.spring5.bean;



import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders {
    private String onename;

    //创建执行的初始化方法
    public void initMethod(){
        System.out.println("第三步  初始化方法");
    }

    //创建销毁的方法
    public void destroyMethod(){
        System.out.println("第五步  销毁方法");
    }

    public void show(){
        System.out.println("这是show方法");
    }

}
